package com.qa.dao;

import com.qa.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    User selectByPrimaryKey(Integer id);

    List<User> selectAll();

    int updateByPrimaryKey(User record);
    int updateByPrimaryKeyNoPassword(User record);

    List<User> getByUserEmail(String userEmail);

    User getByUserEmailAndStatus(String userEmail);

    int getCount(@Param("beginTime") String beginTime, @Param("endTime") String endTime);
}